import fetch from 'common/src/utils/fetch';
export function getList(data) {
    return fetch({
        url: '/api/designservice/tutor/inner/list',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

export function update(data) {
    return fetch({
        url: '/api/designservice/tutor/inner/update',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

export function getInfo(data) {
    return fetch({
        url: '/api/designservice/tutor/inner/info',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

export function deleteData(code) {
    return fetch({
        url: '/api/designservice/tutor/inner/delete?code='+code,
        method: 'get',
        headers: { 'Content-Type': 'application/json' },
    });
}

export function exportData(data) {
    return fetch({
        url: '/api/designservice/tutor/inner/export',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

export function getReportStatus(key) {
    return fetch({
      url: `/api/designservice/common/exportExcelResult/${key}`,
      method: 'get'
    });
  }

export function getCollege() {
    let authId = localStorage.getItem('activeAuthId');
    return fetch({
      url: '/api/majorservice/common/college?authId='+ authId,
      method: 'get'
    })
  }
  